import {createRouter,createWebHistory} from 'vue-router'


let routes=[{
  path:"/",
  redirect:"/home"
},{
  path:"/home",
  name:"home",
  component:()=>import("../views/home/index.vue")
},
{
  path:"/cart",
  name:"cart",
  component:()=>import("../views/cart/cart.vue")
},
{
  path:"/mine",
  name:"mine",
  component:()=>import("../views/mine/index.vue")
},
{
  path:"/tobuy",
  name:"tobuy",
  component:()=>import("../views/tobuy/index.vue")
},
{
  path:"/ticket",
  name:"ticket",
  component:()=>import("../views/tickets/index.vue")
},
{
  path:"/about",
  name:"about",
  component:()=>import("../views/about/index.vue")
}]

let router=createRouter({
  history:createWebHistory(),
  routes
})
export default router